package com.tca.cloud.standalone.person.api.service;

import com.tca.cloud.standalone.person.api.req.PersonReq;
import com.tca.cloud.standalone.person.api.resp.PersonResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author zhouan
 * @Date 2021/7/29
 */
@FeignClient(value = "person-provider")
public interface PersonFeign {

    /**
     * 根据id获取人员
     * @param personReq
     * @return
     */
    @PostMapping("/person/get")
    PersonResp get(PersonReq personReq);
}
